package com.example.demo.controller;

import com.example.demo.service.MyFactoryBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName FactoryBeanController
 * @Author bsy
 * @Description TODO
 * @Date 2022/8/24 22:21
 * @Version 1.0
 */

@RestController
public class FactoryBeanController {

    @Autowired
    MyFactoryBeanService myFactoryBeanService;

    @RequestMapping("/testFactoryBean")
    public void testFactoryBean(){
        myFactoryBeanService.test();
    }
}
